package model

type CouponRecordIdReq struct {
	Id string `json:"id"  dc:"优惠券记录id"    v:"required#优惠券记录Id必填"`
}

type CouponRecordIdRes struct {
	Id string `json:"id"  dc:"优惠券记录id"`
}

type CouponRecordInfoRes struct {
	CouponId           string `json:"couponId" dc:"优惠券id" v:"required#优惠券Id必填"`
	UserId             string `json:"userId" dc:"用户id" v:"required#用户id必填"`
	EntryIntoForceTime string `json:"entryIntoForceTime" dc:"生效效日期"  v:"datetime#生效效日期格式不正确"`
	ExpirationTime     string `json:"expirationTime"    dc:"失效日期"  v:"datetime#失效日期格式不正确" `
	UseTime            string `json:"useTime" dc:"使用/核销时间" v:"datetime#使用日期格式不正确"`
}

type CouponRecordIdAndUserAndCouponInfoRes struct {
	CouponRecordInfoRes
	CouponRecordIdReq
	CouponInfo *CouponInfoDBRes `json:"couponInfo"  dc:"优惠券详情" orm:"with:id=coupon_id"`
	UserInfo   *LotUserDBRes    `json:"userInfo"  dc:"用户详情详情" orm:"with:id=user_id"`
}

type CouponRecordIdAndInfoRes struct {
	CouponRecordInfoRes
	CouponRecordIdReq
}

type CouponRecordOListRes struct {
	CouponRecordInfoRes
	CouponRecordIdReq
}

type CouponRecordListRes struct {
	List []*CouponRecordIdAndUserAndCouponInfoRes `json:"list" dc:"优惠券记录列表"`
	PutPage
}

type CouponRecordUserListRes struct {
	List []*CouponRecordIdAndUserAndCouponInfoRes `json:"list" dc:"优惠券用户记录列表"`
	PutPage
}
